package com.hdaccp.cloud.controller;
import com.hdaccp.cloud.bean.Users;
import com.hdaccp.cloud.dao.UsersDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class UsersController {
    @Autowired
    private UsersDao usersDao ;
    @RequestMapping("/getUsers/{id}")
    public Users getUsers(@PathVariable("id") int id){
        //Users users = new Users(1,"张三","河北邯郸") ;
        Users users = new Users(2,"李三","河北邯郸2") ;
        return users ;
    }

}
